<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>
<!-- 分页显示演示开始 -->
<form id="listForm" class="well form-search" action="${ctx}/point/member/list" method="post">
    <input type="hidden" name="pageNo" id="pageNo" value="${pageData.pagination.pageNo}"/>
    <input type="hidden" name="fieldName" id="fieldName" value="${pageData.compositor.fieldName}"/>
    <input type="hidden" name="compositorType" id="compositorType" value="${pageData.compositor.compositorType}"/>
    <table class="table table-striped table-bordered table-condensed">
        <tr align="center">
            <th>
                用户名|手机号：
                <y:search fieldType="S" fieldList="userName,mobile" matchType="LIKE"
                          className="input-medium search-query"/>
                <button class="btn btn-small" onclick="search()" type="button">
                    <i class="icon-search"></i>
                    搜索
                </button>
                <a class="btn pull-right btn-small" href="${ctx }/point/member/new">新增积分会员</a>
            </th>
        </tr>
    </table>
</form>
<table class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>#</th>
        <th>
            <a href="javascript:sort('mobile')">账号(手机号)</a>
        </th>
        <th>
            <a href="javascript:sort('userName')">用户名</a>
        </th>
        <th>
            <a href="javascript:sort('gender')">性别</a>
        </th>
        <th>
            积分部门
        </th>
        <th>
            <a href="javascript:sort('weixin')">微信号</a>
        </th>
        <th>
            <a href="javascript:sort('babyBirth')">宝宝生日</a>
        </th>
        <th>
            <a href="javascript:sort('balance')">积分余额</a>
        </th>
        <th>
            <a href="javascript:sort('insertTime')">注册时间</a>
        </th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="entity" items="${pageData.result}" varStatus="index">
        <tr <c:if test="${!entity.visible}">bgcolor="#AFEEEE"</c:if>>
            <td>${index.index + 1}</td>
            <td>${entity.mobile }</td>
            <td>${entity.userName}</td>
            <td>${entity.gender }</td>
            <td>${entity.lastDepart }</td>
            <td>${entity.weixin }</td>
            <td>${entity.babyBirth }</td>
            <td><fmt:formatNumber pattern="###,###">${entity.balance}</fmt:formatNumber></td>
            <td>${entity.insertTime}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<%@ include file="/WEB-INF/jsp/commons/pager.jsp" %>